
/**
 * 设置页面title
 */
import defaultSettings from '@/settings' // 引入默认title

// 定义默认title
const title = defaultSettings.title || 'Vue Admin Template'

export default function getPageTitle(pageTitle) {
  // 传入的title+默认title
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
